# -*- coding:utf-8 -*-

from Enterprise_wechat_app.po.base_page import BasePage
from Enterprise_wechat_app.po import utils


class AddressPage(BasePage):
    # 读取yaml文件数据
    get_datas = utils.yml_data()
    def address_to_AddMenberPage(self):
        """
        点击添加成员跳转到添加成员界面
        :return:
        """
        from po.add_member_page import AddMenberPage
        # 滑动查询"添加成员"元素,点击
        self.find_uiautomator_click(self.get_datas.get("add_member"))
        return AddMenberPage(self.driver)

    def address_to_PersonalInformationPage(self,name):
        """
        滑动查询某个成员跳转到个人信息界面
        :return:
        """
        # 滑动查询某个名字
        self.find_uiautomator_click(name)
        from Enterprise_wechat_app.po.personal_information_page import PersonalInformationPage
        return PersonalInformationPage(self.driver)
